package com.itheima.service;

import com.itheima.domain.Employee;
import com.itheima.dto.LoginDto;
import com.itheima.vo.LoginVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * date: 2022/5/12 17:25
 *
 * @author daya000
 */

public interface EmployeeService {

    LoginVo login(LoginDto dto);

    Employee loginRedis(LoginDto dto);


    Boolean addEmployee(Employee employee);
    Employee selectByUserName(String username);
    Boolean updateEmployee(Employee employee);
    List<Employee> selectByPage(String name,Integer page,Integer pageSize);
    Long selectTotal(String name);
    Employee selectById(String id);
}
